﻿using System;
using System.Collections.Generic;
using System.IO.IsolatedStorage;
using System.Linq;
using System.Text;

namespace U.Help.Local
{
    public class Isolated
    {
        static IsolatedStorageSettings settings = IsolatedStorageSettings.ApplicationSettings;

        public static void SaveSetting(string key, object value)
        {
            if (settings.Contains(key))
            {
                settings[key] = value;
            }
            else
            {
                settings.Add(key, value);
            }
        }

        public static object GetSetting(string key)
        {
            if (settings.Contains(key))
            {
                return settings[key];
            }
            else
            {
                return null;
            }
        }

    }
}
